home *** CD-ROM | disk | FTP | other *** search
- {* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- TechInsite Pty. Ltd.
- PO Box 429, Abbotsford, Melbourne. 3067 Australia
- Phone: +61 3 9419 6456
- Fax: +61 3 9419 1682
- Web: www.techinsite.com.au
- EMail: peter_hinrichsen@techinsite.com.au
-
- Created: 01/06/1999
-
- Notes: Concrete report for factory demo
-
- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *}
- unit FReportListing;
-
- interface
-
- uses
- Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
- FReportAbstract, StdCtrls, Buttons;
-
- type
- TFormReportListing = class(TFormReportAbstract)
- private
- { Private declarations }
- public
- { Public declarations }
- procedure Execute; override ;
- end;
-
- implementation
- uses
- FactoryReport
- ,FactoryConcreteReport
- ,Constants
- ;
-
- {$R *.DFM}
-
- //----------------------------------------------------------
- procedure TFormReportListing.Execute;
- begin
- Caption := cgStrReportNameListing ;
- MemoReport.Lines.Add( 'A demonstration of the ' +
- cgStrReportNameListing + ' report.' ) ;
- inherited ;
- end;
-
- initialization
- // Register report with the simple factory
- gFactoryReport.RegisterReport( cgStrReportNameListing,
- TFormReportListing ) ;
-
- // Registering a report twice like this would cause
- // an error.
- // gFactoryReport.RegisterReport( cgStrReportNameListing,
- // TFormReportListing ) ;
-
- // Register report with the abstract / concrete factory
- gFactoryConcreteReport.RegisterClass( cgStrReportNameListing,
- TFormReportListing ) ;
-
- end.
-
-